from nornir import InitNornir
from nornir_scrapli.tasks import (
    get_prompt,
    send_command,
    send_configs
)

nr = InitNornir(config_file='config-scrapli.yaml')

# prompt_results = nr.run(task=get_prompt)
# command_results = nr.run(task=send_command, command="show version")
config_results = nr.run(task=send_command, command="show ip interface brief ", use_textfsm=True,
                        )
r = config_results

# print("get_prompt result:")
# print(prompt_results["vEOS01"].result)
# print("send_command result:")
# print(command_results["vEOS01"].result)
# print("send_configs result:")
# print(config_results["vEOS01"].result)
